cmake_minimum_required(VERSION 3.7)
project(rtdev)
add_subdirectory(safetyboard)
add_subdirectory(jk_bp)
add_subdirectory(servo)
add_subdirectory(tio)
aux_source_directory(. SRCS)
aux_source_directory(./bp BPSRCS)
add_library(${PROJECT_NAME}
${SRCS}
${BPSRCS}
../zuc/motion/modbuscrc.c
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE zlog rtbus safetyboard tio servo)

target_include_directories(${PROJECT_NAME} PRIVATE ./)

# add_subdirectory(test)
